<?php /*a:2:{s:56:"D:\phpstudy_pro\WWW\xhadmin\app\admin\view\test\add.html";i:1597309960;s:65:"D:\phpstudy_pro\WWW\xhadmin\app\admin\view\common\_container.html";i:1593828173;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit"/><!-- 让360浏览器默认选择webkit内核 -->

    <!-- 全局css -->
    <!-- 全局css -->
    <link href="/static/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/static/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/static/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="/static/css/style.css?v=1.0.0" rel="stylesheet">
    <link rel="stylesheet" href="/static/js/plugins/layui/css/layui.css?ver=170803"  media="all">
	<link href="/static/css/plugins/webuploader/webuploader.css" rel="stylesheet">
    <script src="/static/js/jquery.min.js?v=2.1.4"></script>
    <script src="/static/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="/static/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
	<script src="/static/js/plugins/validate/bootstrapValidator.min.js"></script>
    <script src="/static/js/plugins/validate/zh_CN.js"></script>
    <script src="/static/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
    <script src="/static/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="/static/js/plugins/layer/layer.min.js"></script>
    <script src="/static/js/plugins/layer/laydate/laydate.js"></script>
    <script src="/static/js/common/ajax-object.js?v=<?php echo rand(1000,9999)?>"></script>
    <script src="/static/js/common/bootstrap-table-object.js"></script>
    <script src="/static/js/common/Feng.js"></script>
	<script src="/static/js/plugins/webuploader/webuploader.min.js"></script>
	<script type="text/javascript" src="/static/js/ueditor/ueditor.config.js"></script>
	<script type="text/javascript" src="/static/js/ueditor/ueditor.all.min.js"> </script>
	<script type="text/javascript" src="/static/js/xheditor/xheditor-1.2.2.min.js"></script>
	<script type="text/javascript" src="/static/js/xheditor/xheditor_lang/zh-cn.js"></script>
	 <script type="text/javascript">
		<?php
			$domains = config('app.domain_bind');
			$app = app('http')->getName();
			if(in_array($app,$domains)){			
				$ctxPathUrl = request()->domain();
			}else{
				$ctxPathUrl = request()->domain().'/'.getKeyByVal(config('app.app_map'),$app);
			}
		?>
        Feng.addCtx("<?php echo $ctxPathUrl;?>");
        Feng.sessionTimeoutRegistry();
    </script>
</head>

<body>
<div class="wrapper wrapper-content animated fadeInRight">
	
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<div class="form-horizontal" id="CodeInfoForm">
			<div class="row">
				<div class="col-sm-12">
				<!-- form start -->
					<div class="form-group">
						<label class="col-sm-2 control-label">姓名：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="name" value="" name="name" class="form-control" placeholder="请输入姓名">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">学号：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="student_num" value="" name="student_num" class="form-control" placeholder="请输入学号">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">联系电话：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="tel" value="" name="tel" class="form-control" placeholder="请输入联系电话">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">年级：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="grade" value="" name="grade" class="form-control" placeholder="请输入年级">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">专业：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="major" value="" name="major" class="form-control" placeholder="请输入专业">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">班级：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="class" value="" name="class" class="form-control" placeholder="请输入班级">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">就业方向：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="g_des" value="" name="g_des" class="form-control" placeholder="请输入就业方向">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">单位/学校名称：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="u_name" value="" name="u_name" class="form-control" placeholder="请输入单位/学校名称">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">单位性质：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="u_nature" value="" name="u_nature" class="form-control" placeholder="请输入单位性质">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">单位行业：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="u_vocation" value="" name="u_vocation" class="form-control" placeholder="请输入单位行业">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">工作职位类别：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="u_positiion" value="" name="u_positiion" class="form-control" placeholder="请输入工作职位类别">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">组织机构代码：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="o_daima" value="" name="o_daima" class="form-control" placeholder="请输入组织机构代码">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">单位所在地（省）：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="u_location1" value="" name="u_location1" class="form-control" placeholder="请输入单位所在地（省）">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">单位所在地（市）：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="u_location2" value="" name="u_location2" class="form-control" placeholder="请输入单位所在地（市）">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">单位所在地（县）：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="u_location3" value="" name="u_location3" class="form-control" placeholder="请输入单位所在地（县）">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">单位所在地（精确到门派号）：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="u_address" value="" name="u_address" class="form-control" placeholder="请输入单位所在地（精确到门派号）">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">单位邮编：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="u_p_c" value="" name="u_p_c" class="form-control" placeholder="请输入单位邮编">
						</div>
					</div>
					<div class="form-group layui-form">
						<label class="col-sm-2 control-label">单位是否接受档案：</label>
						<div class="col-sm-9">
							<?php if(!isset($info['u_dangan'])){ $info['u_dangan'] = 1; }; ?>
							<input name="u_dangan" value="1" type="radio" <?php if($info['u_dangan'] == '1'): ?>checked<?php endif; ?> title="开启">
							<input name="u_dangan" value="0" type="radio" <?php if($info['u_dangan'] == '0'): ?>checked<?php endif; ?> title="关闭">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">接收档案单位名称：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="rd_unitname" value="" name="rd_unitname" class="form-control" placeholder="请输入接收档案单位名称">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">接收档案单位邮编：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="d_unitp_c" value="" name="d_unitp_c" class="form-control" placeholder="请输入接收档案单位邮编">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">档案转寄单位所在地（省）：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="d_unitaddr1" value="" name="d_unitaddr1" class="form-control" placeholder="请输入档案转寄单位所在地（省）">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">转寄单位所在地（市）：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="d_unitaddr2" value="" name="d_unitaddr2" class="form-control" placeholder="请输入转寄单位所在地（市）">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">档案转寄单位所在地（县）：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="d_unitaddr3" value="" name="d_unitaddr3" class="form-control" placeholder="请输入档案转寄单位所在地（县）">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">档案转寄单位所在地（精确到门派号）：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="d_unitaddr4" value="" name="d_unitaddr4" class="form-control" placeholder="请输入档案转寄单位所在地（精确到门派号）">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">单位联系人：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="u_lingkman" value="" name="u_lingkman" class="form-control" placeholder="请输入单位联系人">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">单位联系人电话：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="linkman_tel" value="" name="linkman_tel" class="form-control" placeholder="请输入单位联系人电话">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">报到证单位名称：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="bq_unitname" value="" name="bq_unitname" class="form-control" placeholder="请输入报到证单位名称">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">报到证单位所在地（省）：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="bq_unitaddr1" value="" name="bq_unitaddr1" class="form-control" placeholder="请输入报到证单位所在地（省）">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">报到证单位所在地（市）：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="bq_unitaddr2" value="" name="bq_unitaddr2" class="form-control" placeholder="请输入报到证单位所在地（市）">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">报到证单位所在地（县）：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="bq_unitaddr3" value="" name="bq_unitaddr3" class="form-control" placeholder="请输入报到证单位所在地（县）">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">user_id：</label>
						<div class="col-sm-9">
							<input type="text" autocomplete="off" id="user_id" value="" name="user_id" class="form-control" placeholder="请输入user_id">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">三方协议或就业合同照片：</label>
						<div class="col-sm-6">
							<input type="text" autocomplete="off" id="file" value="" <?php if(config('my.img_show_status') == true): ?>onmousemove="showBigPic(this.value)" onmouseout="closeimg()"<?php endif; ?> name="file" class="form-control" placeholder="请输入三方协议或就业合同照片">
							<span class="help-block m-b-none file_process"></span>
						</div>
						<div class="col-sm-2" style="position:relative; right:30px;">
							<span id="file_upload"></span>
						</div>
					</div>
				<!-- form end -->
				</div>
			</div>
			<div class="hr-line-dashed"></div>
			<div class="row btn-group-m-t">
				<div class="col-sm-9 col-sm-offset-1">
					<button type="button" class="btn btn-primary" onclick="CodeInfoDlg.add()" id="ensure">
						<i class="fa fa-check"></i>&nbsp;确认提交
					</button>
					<button type="button" class="btn btn-danger" onclick="CodeInfoDlg.close()" id="cancel">
						<i class="fa fa-eraser"></i>&nbsp;取消
					</button>
				</div>
			</div>
		</div>
	</div>
</div>
<script src="/static/js/upload.js" charset="utf-8"></script>
<script src="/static/js/plugins/layui/layui.js" charset="utf-8"></script>
<script>
layui.use(['form'],function(){});
uploader('file_upload','file','image',false,'','<?php echo url("admin/Upload/uploadImages"); ?>');
var CodeInfoDlg = {
	CodeInfoData: {},
	validateFields: {
	 }
}

CodeInfoDlg.collectData = function () {
	this.set('id').set('name').set('student_num').set('tel').set('grade').set('major').set('class').set('g_des').set('u_name').set('u_nature').set('u_vocation').set('u_positiion').set('o_daima').set('u_location1').set('u_location2').set('u_location3').set('u_address').set('u_p_c').set('rd_unitname').set('d_unitp_c').set('d_unitaddr1').set('d_unitaddr2').set('d_unitaddr3').set('d_unitaddr4').set('u_lingkman').set('linkman_tel').set('bq_unitname').set('bq_unitaddr1').set('bq_unitaddr2').set('bq_unitaddr3').set('user_id').set('file');
};

CodeInfoDlg.add = function () {
	 this.clearData();
	 this.collectData();
	 if (!this.validate()) {
	 	return;
	 }
	 var u_dangan = $("input[name = 'u_dangan']:checked").val();
	 var ajax = new $ax(Feng.ctxPath + "/Test/add", function (data) {
	 	if ('00' === data.status) {
	 		Feng.success(data.msg,1000);
	 		window.parent.CodeGoods.table.refresh();
	 		CodeInfoDlg.close();
	 	} else {
	 		Feng.error(data.msg + "！",1000);
		 }
	 })
	 ajax.set('u_dangan',u_dangan);
	 ajax.set(this.CodeInfoData);
	 ajax.start();
};


</script>
<script src="/static/js/base.js" charset="utf-8"></script>

</div>
<script src="/static/js/content.js?v=1.0.0"></script>

</body>
</html>
